package refactor.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import refactor.entity.Facilities;
import refactor.mapper.FacilitiesMapper;
import refactor.service.IFacilitiesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 记录系统中的各个功能系统的包括的设施 服务实现类
 * </p>
 *
 * @author 杨健
 * @since 2019-08-19
 */
@Service
public class FacilitiesServiceImpl extends ServiceImpl<FacilitiesMapper, Facilities> implements IFacilitiesService {
    private FacilitiesMapper facilitiesMapper;

    @Autowired
    public void setFacilitiesMapper(FacilitiesMapper facilitiesMapper) {
        this.facilitiesMapper = facilitiesMapper;
    }

    @Override
    public List<Map<String, Object>> countFacilitiesGroupNum(int regionId) {
        return facilitiesMapper.countFacilitiesGroupNum(regionId);
    }
}
